﻿@model MemberModel
@{
    ViewBag.Title = Model.Nickname;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<section class="mc-de">
    <div class="mc-de-1">
        <div class="photograph">
            <img src="/Assets/@(Model.Portrait).jpg" />
        </div>
        <div class="act">
            <a class="hello" data-fancybox-type="iframe" href="/Member/Hello/@(Model.Id)">打招呼</a>
        </div>
        <div class="act">
            <a class="letter" data-fancybox-type="iframe" href="/Member/Letter/@(Model.Id)">写信</a>
        </div>
        <div class="act">
            相册 (@(Model.TotalPhotos))
        </div>
        <div class="act">
            @foreach (var photograph in Model.Photos)
            {
                <a href="/Assets/Member/@(Model.Id)/@(photograph.Url).jpg" class="photograph" rel="photograph">
                    <img src="/Assets/Member/@(Model.Id)/@(photograph.Url)-thumbnail.jpg"  /></a>
            }
        </div>
    </div>
    <div class="mc-de-2">
        <div class="part">
            <h4>基本信息</h4>
            <div class="field">
                @if (Model.Nickname.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Nickname</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Nickname)
                </div>

            </div>
            <div class="field">
                @if (Model.GenderValue.IsNotEmpty())
                {
                    <div><span class="focus">@Model.GenderValue</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.GenderValue)
                </div>
            </div>
            <div class="field">
                @if (Model.Age.IsNotEmpty())
                {
                    <div><span class="focus">@(Model.Age)岁</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(r => r.Age)
                </div>
            </div>
            <div class="field">
                @if (Model.Nation.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Nation</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Nation)
                </div>
            </div>
            <div class="field">
                @if (Model.City.IsNotEmpty())
                {
                    <!--<div><span class="focus">@Model.Province&nbsp;@Model.City</span></div>-->
                    <div><span class="focus">辽宁&nbsp;大连</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    <label>所在地</label>
                </div>
            </div>
            <div class="field">

                @if (Model.Marry.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Marry</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Marry)
                </div>
            </div>
            <div class="field">
                @if (Model.Education.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Education</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Education)
                </div>
            </div>
            <div class="field">
                @if (Model.Occupation.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Occupation</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Occupation)
                </div>
            </div>
            <div class="field">
                @if (Model.Income.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Income</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Income)
                </div>
            </div>
        </div>
        <div class="part part-full">
            <h4>真爱宣言</h4>
            @if (Model.Declaration.IsNotEmpty())
            {
                <div>
                    <div><span class="focus">@Model.Declaration</span></div>
                </div>
            }
            else
            {
                <div class="field">
                    <div><span>千里姻缘真爱牵线！</span></div>
                </div>
            }
        </div>
        <div class="part">
            <h4>个人情况</h4>
            <div class="field">
                @if (Model.Height.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Height&nbsp;cm</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Height)
                </div>
            </div>
            <div class="field">
                @if (Model.Weight.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Weight&nbsp;kg</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Weight)
                </div>
            </div>
            <div class="field">
                @if (Model.Blood.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Blood&nbsp;型</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Blood)
                </div>
            </div>
            <div class="field">
                @if (Model.Asterism.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Asterism</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Asterism)
                </div>
            </div>
            <div class="field">
                @if (Model.Nationality.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Nationality</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Nationality)
                </div>
            </div>
            <div class="field">
                @if (Model.Religion.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Religion</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Religion)
                </div>
            </div>
            <div class="field">
                @if (Model.City.IsNotEmpty())
                {
                    <!--<div><span>@Model.RegisteredProvince&nbsp;@Model.RegisteredCity</span></div>-->
                    <div><span class="focus">辽宁&nbsp;大连</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    <label>出生地</label>
                </div>
            </div>
        </div>
        <div class="part clear">
            <h4>生活方式</h4>
            <div class="field">
                @if (Model.Smoke.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Smoke</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Smoke)
                </div>
            </div>
            <div class="field">
                @if (Model.Drink.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Drink</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Drink)
                </div>
            </div>
            <div class="field">
                @if (Model.Health.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Health</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Health)
                </div>
            </div>
            <div class="field">
                @if (Model.Life.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Life</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Life)
                </div>
            </div>
            <div class="field">
                @if (Model.Exercise.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Exercise</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Exercise)
                </div>
            </div>
        </div>
        <div class="part clear">
            <h4>家庭情况</h4>
            <div class="field">
                @if (Model.Monotropic.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Monotropic</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Monotropic)
                </div>
            </div>
            <div class="field">
                @if (Model.Singleton.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Singleton</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Singleton)
                </div>
            </div>
            <div class="field">
                @if (Model.Dink.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Dink</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Dink)
                </div>
            </div>
            <div class="field">
                @if (Model.Living.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Living</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Living)
                </div>
            </div>
            <div class="field">

                @if (Model.Car.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Car</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Car)
                </div>
            </div>
            <div class="field">
                @if (Model.House.IsNotEmpty())
                {
                    <div><span class="focus">@Model.House</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.House)
                </div>
            </div>
        </div>
        <div class="part">
            <h4>职业信息</h4>
            <div class="field">
                @if (Model.Trade.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Trade</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Trade)
                </div>
            </div>
            <div class="field">
                @if (Model.TradeType.IsNotEmpty())
                {
                    <div><span class="focus">@Model.TradeType</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.TradeType)
                </div>
            </div>
            <div class="field">
                @if (Model.Company.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Company</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Company)
                </div>
            </div>
            <div class="field">
                @if (Model.Department.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Department</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Department)
                </div>
            </div>
            <div class="field">
                @if (Model.Duty.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Duty</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Duty)
                </div>
            </div>
            <div class="field">
                @if (Model.WorkState.IsNotEmpty())
                {
                    <div><span class="focus">@Model.WorkState</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.WorkState)
                </div>
            </div>
            <div class="field">
                @if (Model.IncomeDetail.IsNotEmpty())
                {
                    <div><span class="focus">@Model.IncomeDetail</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.IncomeDetail)
                </div>
            </div>
            <div class="field">
                @if (Model.School.IsNotEmpty())
                {
                    <div><span class="focus">@Model.School</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.School)
                </div>
            </div>
            <div class="field">
                @if (Model.Major.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Major</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Major)
                </div>
            </div>
            <div class="field">
                @if (Model.Investment.IsNotEmpty())
                {
                    <div><span class="focus">@Model.Investment</span></div>
                }
                else
                { 
                    <div><span>未填</span></div>
                }
                <div>
                    @Html.LabelFor(model => model.Investment)
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
    $(function () {
        $('.hello, .letter, .photograph').fancybox();
    });
</script>
